package com.yundows.safe;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class StartBroadcastReceiver extends BroadcastReceiver{
	private static final String ACTION = "android.intent.action.BOOT_COMPLETED";

	@Override
	public void onReceive(Context context, Intent intent) {
		if (intent.getAction().equals(ACTION)){
			Intent i= new Intent(Intent.ACTION_RUN);
			i.setClass(context, ProtectService.class);
			context.startService(i);
	    }
	}

}
